<include file="Common/head" />
<link href="__PUBLIC__/Home/public/core/wow/animate.css" rel="stylesheet" type="text/css" media="all">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/public/css/index.css">
<script src="__PUBLIC__/Home/public/core/jquery/1.11.3/jquery.min.js"></script>
<script src="__PUBLIC__/Home/public/core/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/Home/public/js/zzsc1.js"></script>
<script type="text/javascript" src="__STATIC__/My97DatePicker/WdatePicker.js"></script>
<script src="__STATIC__/layer/layer/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ajaxfileupload.js"></script>
<style>
    label{
        font-weight: normal;
    }
    font{
        font-weight: normal;
    }
    #show_message_1{
        font-size: 13px;
        display: inline-block;
        position: relative;
        top: -4px;
        margin-left: 10px;
    }
</style>
</head>
<body style="background: #fff">
<include file="Common/top" />
<div class="container">
    <div class="row">
        <include file="Common/left" />
        <div class="right-panelbar">
            <p class="opkse-itle">首页 > 查新委托</p>
        <div class="container" >
            <div class="fenbu" align="center">
                <ul>
                    <li class="active" id="bu1"><a>1</a>项目信息及委托人信息</li>
                    <li id="bu2"><a>2</a>查新基本内容</li>
                    <li id="bu3"><a>3</a>检索要求及其他</li>
                </ul>
            </div>
            <!--步骤1-->
            <form  method="post" id="form_work" action="__SELF__" class="form_button5">
                <div id="buzhou1">
                    <div class="buzhoudiv">
                        <p class="biaoti"><img src="__PUBLIC__/Home/public/img/sanjiao_left.png"/>查新项目信息</p>
                        <div class="clear"></div>
                        <div class="choose">
                            <span>查新机构</span>
                            <input type="text" placeholder="" style="width: 350px;height: 32px;"  id="chose_jg" readonly data-toggle="modal" data-target="#myModal"/>
                            <p style="color: red;font-size: 14px;margin-left: 40px;margin-top: -10px;display: inline-block">点击可选择查新机构</p>
                        </div>
                        <div class="choose">
                            <span>查新范围<a>*</a></span>
                            <label id="fan1">
                                <input type="radio" name="cxfw" value="1"  onclick="click_name()" checked/>国内
                            </label>
                            <label id="fan2">
                                <input type="radio" name="cxfw" value="2"  onclick="click_name()" />国外
                            </label>
                            <label id="fan3">
                                <input type="radio" name="cxfw" value="3"  onclick="click_name()"/>国内外
                            </label>
                        </div>
                        <div class="choose zhong_name" >
                            <span>项目中文名称<a>*</a></span>
                            <input type="text" placeholder="请输入项目中文名称" style="width: 500px;" name="xmmc"/>
                        </div>
                        <div class="choose wai_name"  style="display: none">
                            <span>项目英文名称<a>*</a></span>
                            <input type="text" placeholder="国外和国内外查新英文名称为必填" style="width: 604px;" name="xmmcen"/>
                        </div>
                        <div class="choose" style="margin-bottom: 30px;">
                            <span>项目所属学科</span>
                            <select style="width: 192px;height: 30px;border: 1px solid #cccccc;margin-right: 10px;margin-top: -3px;"name="xkfl" onBlur="xk()" >
                                <option value="">请选择学科</option>
                                <volist name=":getSchoolTypeSelect()" id="vo">
                                    <eq name="key" value="$info.SchoolType">
                                        <option value="{$key}" selected="selected">{$vo}</option>
                                        <else/>
                                        <option value="{$key}">{$vo}</option>
                                    </eq>
                                </volist>
                            </select>
                            <span style="margin-right: 0;padding-left: 30px;">其他学科</span>
                            <input type="text" style="width: 192px;" name='qtxk' class="xk" onBlur="xk_()"  />
                        </div>
                        <p class="biaoti"><img src="__PUBLIC__/Home/public/img/sanjiao_left.png"/>委托人信息</p>
                        <div class="clear"></div>
                        <div class="choose">
                            <span>委托人姓名<a>*</a></span>
                            <input type="text" style="width: 192px; " name="wtrname" onblur="show_content()" id="first" />
                            <span style="margin-left:10px;padding-left: 30px;">联系方式<a>*</a></span>
                            <input type="text" style="width: 192px;" name="wtrphone" class="xmmc" placeholder="手机或固定电话" />
                        </div>
                        <div class="choose">
                            <span>联系人姓名<a>*</a></span>
                            <input type="text" style="width: 192px; " name="lxrname"/>
                            <span style="margin-left:10px;padding-left: 30px;">联系方式<a>*</a></span>
                            <input type="text" style="width: 192px;" name="phone" placeholder="手机或固定电话"/>
                        </div>
                        <div class="choose">
                            <span>委托单位<a>*</a></span>
                            <input type="text" placeholder="请正确填写单位全称" style="width: 500px;" name="wtdw"/>
                        </div>
                        <div class="choose">
                            <span>通讯地址<a>*</a></span>
                            <input type="text" placeholder="请正确填写通讯地址" style="width: 500px;" name="txdz"/>
                        </div>
                        <div class="choose">
                            <span>邮政编码<a></a></span>
                            <input type="text" style="width: 192px;" name="lxryzbm"/>
                            <span style="margin-left:10px;padding-left: 30px;">联系邮箱<a>*</a></span>
                            <input type="text" style="width: 192px;" name="wtremail" placeholder="请填写有效Email地址"/>
                        </div>
                    </div>
                    <div class="tijiao">
                        <input type="button" onclick="first_form()" value="继续填写" style="background: #3245a3;border: none;width: 120px;    border-radius: 2px;line-height: 40px;color: #fff;font-weight: bold;font-size: 14px;">
                    </div>
                </div>
                <div id="buzhou2" style="display: none;">
                    <div class="buzhoudiv">
                        <p class="biaoti"><img src="__PUBLIC__/Home/public/img/sanjiao_left.png"/>查新目的</p>

                        <div class="clear"></div>
                        <div class="choose2">
                            <span>查新目的<a>*</a></span>
                            <ul>
                                <li>
                                    <label>
                                        <input type="checkbox" name="cxmd[]" value="1" class="show_action" onclick="research(this)" data_dd="1">  科研立项
                                    </label>
                                    <label>
                                        <input type="checkbox" name="cxmd[]" value="2" >鉴定、验收、评价
                                    </label>
                                    <label>
                                        <input type="checkbox" name="cxmd[]" value="3" >奖励申报
                                    </label>
                                    <label>
                                        <input type="checkbox" name="cxmd[]" value="4" >申请专利
                                    </label>
                                    <label>
                                        <input type="checkbox" name="cxmd[]" value="5" >博硕士论文开题
                                    </label>
                                </li>
                                <li>
                                    <label>
                                        <input type="checkbox" name="cxmd[]" value="6" onclick="other_mu(this)" data_dd="1">其他
                                    </label>
                                    <input type="text" style="width: 520px;display:none" name="cxmd_other" id="cxmd_other"/>
                                </li>
                            </ul>
                        </div>
                        <div class="choose" style="display: none" id="xxcxmd">
                            <span>详细查新目的<a>*</a></span>
                            <input type="text" placeholder="科研立项，需填写详细查新目的，“如申报国家自然科学基金项目”" style="width: 604px;"name="xxcxmd" />
                        </div>
                        <div class="choose">
                            <span>项目级别<a>*</a></span>
                            <label><input type="radio" name="xmjb"  checked="checked"  value="1"/>国家级</label>
                            <label><input type="radio" name="xmjb" value="2"/>省部级</label>
                            <label><input type="radio" name="xmjb" value="3"/>市级</label>
                            <label><input type="radio" name="xmjb" value="4"/>其他</label>
                        </div>
                        <p class="biaoti"><img src="__PUBLIC__/Home/public/img/sanjiao_left.png" />查新点与技术要求</p>
                        <div class="clear"></div>
                        <div class="choose2" style="height: 90px;">
                            <span>查新点<a>*</a></span>
                            <textarea rows="10" cols="30" placeholder="需要查证的内容要点，即与其他类似研究不同之处" name="show_add_cxd" id="show_add_cxd"></textarea>
                        </div>
                        <div class="choose2" style="height: 90px;">
                            <span>技术要求<a>*</a></span>
                            <textarea rows="10" cols="30" placeholder="着重说明查新项目的主要科学技术特征、技术参数或指标、结构、生产工艺、配方成分应用范围、查新委托人自我判断的新颖性等。"  name="jsd" id="jsd"></textarea>
                        </div>
                        <p class="biaoti"><img src="__PUBLIC__/Home/public/img/sanjiao_left.png"/>查新要求</p>
                        <div class="clear"></div>
                        <div class="choose2" style="height: 115px;">
                            <span>查新要求<a>*</a></span>
                            <ul>
                                <li><label><input type="checkbox" name="cxyq[]" value="1"/>希望查新机构通过查新，证明在所查范围内国内外有无相同或类似研究</label></li>
                                <li><label><input type="checkbox" name="cxyq[]" value="2"/>希望查新机构对查新项目分别或综合进行国内外对比分析 </label></li>
                                <li><label><input type="checkbox" name="cxyq[]" value="3" onclick="other_cxyq(this)" data_dd="1"/>查新委托人提出的其他愿望</label>
                                    <input type="text" style="width: 388px;display: none" name="qtyq" id="qtyq"/>
                                </li>
                            </ul>
                        </div>
                        <div class="choose">
                            <span>期望完成日期<a>*</a></span>
                            <input type="text"  name="lqrq"  readonly="readonly"style="width: 280px;height: 32px;"  onfocus="
							WdatePicker({minDate:'%y-%M-{%d}',disabledDays:[6,0],
							skin:'whyGreen',dateFmt:'yyyy-MM-dd',
							minDate:'{:date('Y-m-d',time()+3600*24*2)}',
							maxDate:'{:date('Y-m-d',time()+3600*24*28)}'})
							" >
                            <p style="color: red;font-size: 14px;margin-left: 40px;margin-top: -10px;display: inline-block">从当前日期算起，第2个基本工作日后日期可选</p>
                        </div>
                    </div>
                    <div class="tijiao">
                        <input type="button" id="but3" onclick="second_form()" value="继续填写" style="background: #3245a3;border: none;width: 120px;    border-radius: 2px;line-height: 40px;color: #fff;font-weight: bold;font-size: 14px;">
                    </div>
                </div>
                <div id="buzhou3" style="display: none;">
                    <div class="buzhoudiv">
                        <p class="biaoti"><img src="__PUBLIC__/Home/public/img/sanjiao_left.png"/>检索要求</p>
                        <div class="clear"></div>
                        <div class="choose2" style="height: 90px;">
                            <span>中文检索词<a>*</a></span>
                            <textarea rows="10" cols="30" placeholder="规范词、同义词、广义词、狭义词、相关词" name="keywords_cn"></textarea>
                        </div>
                        <div class="choose2 wai_name" style="height: 90px;display: none">
                            <span>外文检索词<a>*</a></span>
                            <textarea rows="10" cols="30" placeholder="国外、国内外检索必填" name="keywords_en"></textarea>
                        </div>
                        <div class="choose2" style="height: 90px;">
                            <span>检索数量备注</span>
                            <textarea rows="10" cols="30" placeholder="国内外相关文献量篇数、国内外密切相关文献篇数"></textarea>
                        </div>
                        <p class="biaoti"><img src="__PUBLIC__/Home/public/img/sanjiao_left.png"/>收费与报告领取</p>
                        <div class="clear"></div>
                        <div class="choose">
                            <span>缴费方式<a>*</a></span>
                            <label id="zhifu1"><input name="fkfs" type="radio" value="1" checked />网上支付</label>
                            <label id="zhifu2"><input type="radio" name="fkfs" value="3" />现金支付</label>
                            <label id="zhifu3">
                                <input type="radio" name="fkfs" value="2"  data-toggle="modal" data-target="#myModal2"/>汇款凭证上传<span id="show_message_1" ></span>
                            </label>
                            <!--<button id="zhifu" data-toggle="#modalzz" data-target="#myModalzz" style="display: none;width: 100px;height: 32px;border:1px solid #bfbfbf;background-color: #cccccc;color:#3a3a3a;border-radius: 3px; ">上传</button>-->
                        </div>
                        <div class="choose">
                            <span>是否需要发票<a>*</a></span>
                            <label id="buyao"><input type="radio" name="dwsh"  checked="checked" value="1" onclick="fp_show()" />无需发票</label>
                            <label id="yao"><input type="radio" name="dwsh"  value="2" onclick="fp_show()"/>需要发票</label>
                            <input id="yao1" type="text" style="width: 290px; display: none" placeholder="请填写发票抬头" name="kpdw">
                        </div>
                        <div class="choose">
                            <span>报告领取<a>*</a></span>
                            <label id="ziqu"><input type="radio" name="qbfs"  checked="checked" value="1" onclick="bg_show()"/>自取</label>
                            <label id="kuaidi"><input type="radio" name="qbfs" style="margin-left: 28px;"value="2" onclick="bg_show()"/>快递</label>
                            <input id="kuaidi1" type="text" style="width: 290px;display: none;margin-left: 30px" placeholder="请填写收件地址" name="kddz"/>
                        </div>
                        <p class="biaoti"><img src="__PUBLIC__/Home/public/img/sanjiao_left.png"/>其他</p>
                        <div class="clear"></div>
                        <div class="choose">
                            <span>上传附件</span>
						<span data-toggle="modal" data-target="#myModal3"
                              style="width: 100px;height: 34px;border:1px solid #bfbfbf;background-color: #cccccc;text-align: center;cursor: pointer;;border-radius: 3px; ">选择文件
						</span>
                            <span id="show_message_2" data-toggle="modal" data-target="#myModal3" style="    font-size: 12px;"></span>
                        </div>
                        <div class="choose2" style="height: 90px;">
                            <span>其他说明</span>
                            <textarea rows="10" cols="30" placeholder="国外、国内外检索必填" name="contents"></textarea>
                        </div>
                        <div class="choose">
                            <span>委托人签名<a>*</a></span>
                            <input type="text" style="width: 227px;color: black;" placeholder="" readonly  id="second" name="wtr_name"/>
                            <span style="margin-right: 0;padding-left: 30px;" >委托时间</span>
                            <input type="text" style="width: 234px;background-color: #e4e4e4;color: black;"value="{$now}" placeholder="2016-05-11 18:13:53" disabled="disabled"/>
                        </div>
                        <!--<div class="choose">-->
                        <!--<span>查新员签名</span>-->
                        <!--<input type="text" style="width: 227px;background-color: #e4e4e4; " disabled="disabled"/>-->
                        <!--<span style="margin-right: 0;padding-left: 30px;">完成时间</span>-->
                        <!--<input type="text" style="width: 234px;background-color: #e4e4e4;" disabled="disabled"/>-->
                        <!--</div>-->
                    </div>
                    <div class="tijiao">
                        <input type="hidden" id="department_id" name="department_id">
                        <input type="hidden" name="upload_ids" id="upload_icoA" value="{$info.upload_ids}" class="file_1"/>
                        <input type="hidden" name="sqfj" id="upload_icoB" value="{$info.sqfj}" />
                        <button type="submit" class="ajax-post" target-form="form_button5">提交</button>
                        <!--onclick=" return last_form()"-->
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</div>
</div>
<include file="Common/foot" />
</body>
<script>
    $(function(){
        highlight_nav3('{:U("Task/add")}');
    })
    var value = '';
    $(function () { $('#myModal').modal({
        keyboard: true
    })});
    //显示其他
    function other_mu (obj) {
        var name= $(obj).attr('data_dd');
        if(name==1){
            $('#cxmd_other').show();
            $(obj).attr('data_dd','2')
        }else{
            $('#cxmd_other').hide();
            $(obj).attr('data_dd','1')
        }
    }
    //显示其他要求
    function other_cxyq (obj) {
        var name= $(obj).attr('data_dd');
        if(name==1){
            $('#qtyq').show();
            $(obj).attr('data_dd','2')
        }else{
            $('#qtyq').hide();
            $(obj).attr('data_dd','1')
        }
    }

    function selectDeparId(id,name){
        if(id){
            $("#department_id").val(id);
//			$("#chose_jg").val(name);
            $(".fenfen2 li a").removeClass("active1");
            $("#idselect_"+id).addClass('active1');
        }
    }

    //点击确认的时候把值传到前台并且关闭
    function show_name(id){
        if(id == 1)
        {
            var name = $('.fenfen2 li a.active1').text();
            $("#chose_jg").val(name);
        }
        else    //取消选择
        {
            $('.fenfen2 li a.active1').removeClass('active1');
            $("#chose_jg").val('');
            $("#department_id").val('');
        }
    }
    var getDataByParm = {
        //根据学科分类查询学校
        getCate : function (cate,obj) {
            var url = '{:U("Task/getCateType")}';
            $(obj).addClass('active1').siblings("a").removeClass("active1");
            $.ajax({
                type: "POST",
                url: url,
                data: {cate: cate},
                dataType: "json",
                success: function (data) {
                    $('#cate_list').empty();   //清空cate_list里面的所有内容
                    var html = '';
                    var url = '/index.php/Home/__PUBLIC__/Home/public/login';
                    if(data.state){
                        for(var i=0;i<data.result.length;i++){
                            html +="<li ><a href='javascript:;' id='idselect_"+data['result'][i]['id']+"'  onclick='selectDeparId("+data['result'][i]['id']+",\""+data['result'][i]['name']+"\")'>"+data['result'][i]['name']+"</a></li>";
                        }
                    }else{
                        alert('数据错误');
                    }
                    $('#cate_list').html(html);
                }
            });
        },
        //根据城市查询学校
        getCity:function(city){
            var url = '/index.php/Home/Task/getCity';
            var _this = obj;
            $.ajax({
                type: "POST",
                url: url,
                data: {city: city},
                dataType: "json",
                success: function (data) {
                    $('#cate_list').empty();   //清空cate_list里面的所有内容
                    var url = '/index.php/Home/__PUBLIC__/Home/public/login';
                    var html = '';
                    if(data.state){
                        for(var i=0;i<data.result.length;i++){
                            html +="<a href='javascript:;' id='idselect_"+data['result'][i]['id']+"' onclick='selectDeparId("+data['result'][i]['id']+",\""+data['result'][i]['name']+"\")'>"+data['result'][i]['name']+"</a>";
                        }
                    }else{
                        alert('数据错误');
                    }
                    $('#cate_list').html(html);
                }
            });
        },
    }
</script>
</html>